﻿using AutoMapper;
using Business.WriteAPI.Application.Breeds;
using Business.WriteAPI.Application.FarmEnterprises;
using Business.WriteAPI.Application.Images;
using Business.WriteAPI.Application.Immunities;
using Business.WriteAPI.Application.Machinings;
using Business.WriteAPI.Application.Products;
using Business.WriteAPI.Application.Slaughtes;
using Common.Domain;

namespace Business.WriteAPI
{
    public class MappingProfile:Profile
    {
        public MappingProfile()
        {
            CreateMap<ProductAddRequestModel, Product>();
            CreateMap<ProductUpdRequestModel, Product>();
            CreateMap<PhotoAddRequestModel, ProductImg>();
            CreateMap<BreedUpdRequestModel,Breed>();//映射养殖
            CreateMap<ImmunityAddRequestModel, Immunity>();//映射免疫信息
            CreateMap<ImmunityUpdRequestModel, Immunity>();//映射免疫信息
            CreateMap<ImageAddRequestModel, Image>();//映射图片表
            CreateMap<FarmUpdRequestModel, FarmEnterprise>();//映射企业信息
            CreateMap<SlaughteUpdRequestModel, Slaughte>();//映射屠宰信息
            CreateMap<SlaughteQUpdRequestModel, SlaughteEnterprise>();//映射屠宰企业信息
            CreateMap<MachiningUpdRequestModel, Machining>();//映射深加工信息
            CreateMap<MaterialUpdRequestModel, Material>();//映射原料信息信息
            CreateMap<AccessoriesUpdRequestModel, Accessories>();//映射辅料信息信息
            CreateMap<AdditiveUpdRequestModel,Additive>();//映射添加剂
            CreateMap<PackUpdRequestModel, PackeMaterial>();//映射包材
            CreateMap<MachiningJUpdRequestModel, MachiningEnterprise>();//映射加工厂信息
        }
    }
}
